package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDome02 {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add(new point(1,2));
        c.add(new point(2,3));
        c.add(new point(3,4));
        c.add(new point(1,2));
        System.out.println(c);
        point a = new point(1,2);
        c.remove(a);
        System.out.println(c);
        Boolean contains = c.contains(a);
        System.out.println(contains);
    }
}
